package xyhoo.springframework.beans.factory.parsing;

import xyhoo.springframework.beans.BeanMetadataElement;
import xyhoo.springframework.util.Assert;

public class AliasDefinition implements BeanMetadataElement {

    private final String beanName;

    private final String alias;

    private final Object source;

    public AliasDefinition(String beanName, String alias, Object source) {
        Assert.notNull(beanName, "Bean name must not be null");
        Assert.notNull(alias, "Alias must not be null");
        this.beanName = beanName;
        this.alias = alias;
        this.source = source;
    }
}
